package com.construction.engineering.accounting.controller.user;

import com.construction.engineering.accounting.entity.cea.LogTrace;
import com.construction.engineering.accounting.service.config.LogTraceService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class LogTraceController {

    @Resource
    private LogTraceService logTraceService;


    @GetMapping("/queryLogTrace")
    public List<LogTrace> queryLogTrace() {
        return logTraceService.queryLogTrace();
    }

    @GetMapping("/insertLogTrace")
    public String insertLogTrace(@RequestParam(required = false) String filePath) {
        filePath = "D:\\cache\\sql.sql";
        return logTraceService.insertLogTrace(filePath);
    }


}
